import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import axios from 'axios'
import store from './store'
Vue.prototype.$http = axios
// axios.defaults.baseURL = 'http://localhost:8888'
// axios.defaults.baseURL = 'http://10.64.25.23:8888'
axios.defaults.baseURL = 'http://192.168.43.133:8888'
// axios.defaults.baseURL = 'http://swl.free.idcfengye.com'
axios.defaults.withCredentials = true //跨域问题，使得每次sessionId保持一致
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

import {request} from './network/request'

request({
  url:'/home/a'
},res=>{
  console.log(res)
},err=>{
  console.log(err)
})